package com.demo.builder.improve;

public abstract class HouseBuilder {

    protected House house = new House();

    // 打地基
    public abstract void buildBase();

    // 砌墙
    public abstract void buildWalls();

    //封顶
    public abstract void roofed();

    public House build() {
        buildBase();
        buildWalls();
        roofed();
        return house;
    }
}
